#ifndef KEFONG_CEF_BROWSER_H_
#define KEFONG_CEF_BROWSER_H_
#pragma once

#include "include/cef_app.h"

namespace t3exapp {
	class CCefBrowser : public CefApp, public CefBrowserProcessHandler
	{
	public:
		CCefBrowser();
		~CCefBrowser();

		// CefApp methods:
		CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler();

		// CefBrowserProcessHandler methods:
		void OnContextInitialized() override;
		CefRefPtr<CefClient> GetDefaultClient() override;
		
	private:
		// Include the default reference counting implementation.
		IMPLEMENT_REFCOUNTING(CCefBrowser);
	};
}

#endif  // KEFONG_CEF_BROWSER_H_